-- JSON module extracted from ITU-T Y.4473 (08/2020)

//Example 28 - Create a Thing while creating two related Sensors and one related Observation (which links to an existing FeatureOfInterest entity and an existing ObservedProperty entity). //POST /v1.0/Things HTTP1.1 //Host: example.org //Content-Type: application/json { "description": "This an oven with a temperature datastream.", "name": "oven", "Locations": [ { "name": "CCIT", "description": "Calgary Centre for Innovative Technologies", "encodingType": "application/vnd.geo+json", "location": { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 10, 10 ] } } } ], "Datastreams": [ { "name": "oven temperature", "description": "This is a datastream for an oven’s internal temperature.", "unitOfMeasurement": { "name": "degree Celsius", "symbol": "°C", "definition": "http://unitsofmeasure.org/ucum.html#para-30" }, "observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement", "observedArea": { "type": "Polygon", "coordinates": [ [ [ 100, 0 ], [ 101, 0 ], [ 101, 1 ], [ 100, 1 ], [ 100, 0 ] ] ] }, "phenomenonTime": "2009-01-11T16:22:25.00Z/2011-08-21T08:32:10.00Z", "Observations": [ { "phenomenonTime": "2012-06-26T03:42:02-0600", "result": 70.4, "FeatureOfInterest": { "name": "CCIT #361", "description": "This CCIT #361, Noah’s dad’s office", "encodingType": "application/vnd.geo+json", "feature": { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [ 100, 50 ], [ 10, 9 ], [ 23, 4 ], [ 100, 50 ] ], [ [ 30, 20 ], [ 10, 4 ], [ 4, 22 ], [ 30, 20 ] ] ] } } } } ], "ObservedProperty": { "name": "DewPoint Temperature", "definition": "http://sweet.jpl.nasa.gov/ontology/property.owl#DewPointTemperature", "description": "\"The dewpoint temperature is the temperature to which the air must be cooled at constant pressure for dew to form. As the grass and other objects near the ground cool to the dew point some of the water vapor in the atmosphere condenses into liquid water on the objects.\"" }, "Sensor": { "name": "DS18B20", "description": "DS18B20 is an air temperature sensor…", "encodingType": "application/pdf", "metadata": "http://datasheets.maxim-ic.com/en/ds/DS18B20.pdf" } } ] }